#include<iostream>
#include<cmath>
using namespace std;
int main()
{
  int xa,ya,xb,yb;
  cin>>xa>>ya>>xb>>yb;
  cout.precision(3);
  cout<<fixed;
  cout<<hypot(xa-xb,ya-yb);
}